//
//  FriendManager.h
//  FootPrint
//
//  Created by alex tao on 4/9/13.
//  Copyright (c) 2013 alex tao. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FriendParser.h"

@interface FriendManager : NSObject <FriendDelegate> {
    
    NSMutableArray *                            _friendList;
    NSMutableArray *                            _groupList;
    FriendParser *                              _parser;
    
}

@property (nonatomic) BOOL      isLatestList;
@property (nonatomic) BOOL      isLatestGroup;

+ (FriendManager*) sharedInstance;

- (void) mergeFriendList:(FriendQueryResponseMessage*)msg;
- (void) mergeGroupList:(GroupQueryResponseMessage*)msg;

- (void) updateAllList;
- (void) removeAll;

- (NSArray*) allFriends;
- (NSArray*) allGroup;

@end
